﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Search.ascx.cs" Inherits="FrontEnd_Body_Center_Search" %>
<div>
    <div class="title_wap">
        <div class="title">
            &nbsp;&nbsp;&nbsp;&nbsp;<img src="images/mark2.png" />&nbsp;&nbsp; <span><%=Component.Languages.SearchByKeyWord("kqtkm")%></span>
            <div class="site_map">
                <a href="#"><%=Component.Languages.SearchByKeyWord("tcu")%></a> <a href="#">>></a><a href="#"><%=Component.Languages.SearchByKeyWord("kqtkm")%></a></div>
        </div>
    </div>
    <div class="content_body">
        <%
            int _count = _products.Count;

            if (_count > 0)
            {
                int dem = 0;
                while (dem < _count)
                { %>
        <div class="row">
            <div class="col col_first">
                <div class="name_pro">
                    <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>">
                   <%=Component.ProductDB.GetContentByLanguage((_products[dem] as Component.Product).Name, (_products[dem] as Component.Product).NameEL)%></a>
                </div>
                <div class="img_pro">
                    <img src="<%=(_products[dem] as Component.Product).Img%>" />
                </div>
                <div class="price_pro">
                    <%=Component.Languages.SearchByKeyWord("gia")%>:  <%=Component.Languages.SearchByKeyWord("lhe2")%>
                </div>
                <div class="line_buy">
                    <div class="buy_pro">
                        <a href="javascript:void(0);" onclick="Cart(<%=(_products[dem] as Component.Product).Id%>,'<%=Component.Languages.SearchByKeyWord("tcg")%>')"><%=Component.Languages.SearchByKeyWord("mhg")%></a></div>
                    <div class="detail_pro">
                        <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>" style="color: #00F"><%=Component.Languages.SearchByKeyWord("ctt")%></a>
                    </div>
                </div>
            </div>
            <%     dem++;
                   if (dem >= _count) { break; }
            %>
            <div class="col">
                <div class="name_pro">
                    <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>">
                        <%=Component.ProductDB.GetContentByLanguage((_products[dem] as Component.Product).Name, (_products[dem] as Component.Product).NameEL)%></a>
                </div>
                <div class="img_pro">
                    <img src="<%=(_products[dem] as Component.Product).Img%>" />
                </div>
                <div class="price_pro">
                    <%=Component.Languages.SearchByKeyWord("gia")%>:  <%=Component.Languages.SearchByKeyWord("lhe2")%>
                </div>
                <div class="line_buy">
                    <div class="buy_pro">
                        <a href="javascript:void(0);"  onclick="Cart(<%=(_products[dem] as Component.Product).Id%>,'<%=Component.Languages.SearchByKeyWord("tcg")%>')"><%=Component.Languages.SearchByKeyWord("mhg")%></a></div>
                    <div class="detail_pro">
                        <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>" style="color: #00F"><%=Component.Languages.SearchByKeyWord("ctt")%></a>
                    </div>
                </div>
            </div>
            <%dem++;
              if (dem >= _count) { break; }%>
            <div class="col">
                <div class="name_pro">
                    <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>">
                         <%=Component.ProductDB.GetContentByLanguage((_products[dem] as Component.Product).Name, (_products[dem] as Component.Product).NameEL)%></a>
                </div>
                <div class="img_pro">
                    <img src="<%=(_products[dem] as Component.Product).Img%>" />
                </div>
                <div class="price_pro">
                    <%=Component.Languages.SearchByKeyWord("gia")%>:  <%=Component.Languages.SearchByKeyWord("lhe2")%>
                </div>
                <div class="line_buy">
                    <div class="buy_pro">
                        <a href="javascript:void(0);"  onclick="Cart(<%=(_products[dem] as Component.Product).Id%>,'<%=Component.Languages.SearchByKeyWord("tcg")%>')"><%=Component.Languages.SearchByKeyWord("mhg")%></a></div>
                    <div class="detail_pro">
                        <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>" style="color: #00F"><%=Component.Languages.SearchByKeyWord("ctt")%></a>
                    </div>
                </div>
            </div>
            <%dem++;
              if (dem >= _count) { break; } %>
            <div class="col">
                <div class="name_pro">
                    <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>">
                        <%=Component.ProductDB.GetContentByLanguage((_products[dem] as Component.Product).Name, (_products[dem] as Component.Product).NameEL)%></a>
                </div>
                <div class="img_pro">
                    <img src="<%=(_products[dem] as Component.Product).Img%>" />
                </div>
                <div class="price_pro">
                    <%=Component.Languages.SearchByKeyWord("gia")%>:  <%=Component.Languages.SearchByKeyWord("lhe2")%>
                </div>
                <div class="line_buy">
                    <div class="buy_pro">
                        <a href="javascript:void(0);" onclick="Cart(<%=(_products[dem] as Component.Product).Id%>,'<%=Component.Languages.SearchByKeyWord("tcg")%>')"><%=Component.Languages.SearchByKeyWord("mhg")%></a></div>
                    <div class="detail_pro">
                        <a href="<%=(_products[dem] as Component.Product).UrlDetailFronent%>" style="color: #00F"><%=Component.Languages.SearchByKeyWord("ctt")%></a>
                    </div>
                </div>
            </div>
        </div>
        <%dem++;
                }
            }
            else
            { %>
          <span style="color:Red"> <%=Component.Languages.SearchByKeyWord("kcspno")%></span>
            <%} %>
        <div class="row" style="border: none; height: 20px;">
            <div class="paging">
             <%=this._paggingCollection%>
            </div>
        </div>
    </div>
</div>